package com.hk.demo.player.http;


import com.zhoug.common.utils.JsonUtils;

import java.io.Serializable;

import androidx.annotation.Keep;

/**
 * 描述：服务器返回的数据
 * {'code':1,'msg':'请求成功了xxx','data':{.......}}
 * zhougan
 * 2019/3/23
 **/
@Keep
public class HttpBaseResponse<T> implements Serializable {
    private int Code;//返回的code 200成功
    private String Message;//可用来返回接口的说明
    private T Data;//具体数据
    private String token;//具体
    private String Exception;
    private PagerInfo PagerInfo;
    private boolean IsSuccess;

    public int getCode() {
        return Code;
    }

    public void setCode(int code) {
        this.Code = code;
    }

    public String getMessage() {
        return Message;
    }

    public void setMessage(String message) {
        this.Message = message;
    }

    public T getData() {
        return Data;
    }

    public void setData(T data) {
        this.Data = data;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getException() {
        return Exception;
    }

    public void setException(String exception) {
        Exception = exception;
    }

    public PagerInfo getPagerInfo() {
        return PagerInfo;
    }

    public void setPagerInfo(PagerInfo pagerInfo) {
        this.PagerInfo = pagerInfo;
    }
    public boolean isSuccess() {
        return IsSuccess;
    }

    public void setSuccess(boolean success) {
        IsSuccess = success;
    }
    @Override
    public String toString() {
        return JsonUtils.toJson(this);
    }


}
